package com.lxmes.system.domain;

import com.lxmes.common.annotation.Excel;
import com.lxmes.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 审批流管理对象 sys_sp
 *
 * @author ruoyi
 * @date 2023-03-26
 */
public class SysSp extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 公司名称 */
    @Excel(name = "公司名称")
    private String factoryName;

    /** 公司代码 */
    @Excel(name = "公司代码")
    private String factoryCode;

    /** 部门编码 */
    private Long deptId;

    /** 审批流编码 */
    @Excel(name = "审批流编码")
    private String spCode;

    /** 审批流名称 */
    @Excel(name = "审批流名称")
    private String spName;

    /** 审批节点 */
    @Excel(name = "审批节点")
    private Long spSort;

    /** 审批人工号 */
    @Excel(name = "审批人工号")
    private Long spUserId;

    /** 审批人姓名 */
    @Excel(name = "审批人姓名")
    private String spUserName;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setFactoryName(String factoryName)
    {
        this.factoryName = factoryName;
    }

    public String getFactoryName()
    {
        return factoryName;
    }
    public void setFactoryCode(String factoryCode)
    {
        this.factoryCode = factoryCode;
    }

    public String getFactoryCode()
    {
        return factoryCode;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setSpCode(String spCode)
    {
        this.spCode = spCode;
    }

    public String getSpCode()
    {
        return spCode;
    }
    public void setSpName(String spName)
    {
        this.spName = spName;
    }

    public String getSpName()
    {
        return spName;
    }
    public void setSpSort(Long spSort)
    {
        this.spSort = spSort;
    }

    public Long getSpSort()
    {
        return spSort;
    }
    public void setSpUserId(Long spUserId)
    {
        this.spUserId = spUserId;
    }

    public Long getSpUserId()
    {
        return spUserId;
    }
    public void setSpUserName(String spUserName)
    {
        this.spUserName = spUserName;
    }

    public String getSpUserName()
    {
        return spUserName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("factoryName", getFactoryName())
            .append("factoryCode", getFactoryCode())
            .append("deptId", getDeptId())
            .append("spCode", getSpCode())
            .append("spName", getSpName())
            .append("spSort", getSpSort())
            .append("spUserId", getSpUserId())
            .append("spUserName", getSpUserName())
            .append("remark", getRemark())
            .toString();
    }
}
